package com.lin.reactor;

import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.Arrays;

/**
 * @author: linjiang
 * @date: 2025/5/4
 */
public class ReactorMono {

    @Test
    public void createMono() {
        // 创建一个mono
        Mono<String> mono = Mono.just("hello world")
                .log();

        mono.subscribe();
    }


}
